package com.hanserwei.mydemo.stream;

import java.util.stream.IntStream;

public class DistinctTest {
    public static void main(String[] args) {
        IntStream intStream = IntStream.of(1, 1, 1, 1, 2, 1, 2, 3, 3, 3, 4, 4, 5, 6);
        intStream.distinct().forEach(System.out::print);
    }
}
